 /*
 * @Descripttion:
 * @Author: zhengminjie
 * @Date: 2021-06-7 11:27:27
 * @LastEditors: zhengminjie
 * @LastEditTime: 2021-07-04 17:21:14
 */

 import request from '@/utils/request'

 // 创建项目
export function AddProject(data){
    return request({
      url:'/distribution/excelManager/addProject',
      method: 'post',
      data: data
    })
  }

// 搜索项目
export function searchProject(query) {
  return request({
    url: '/distribution/excelManager/searchProject',
    method: 'get',
    params: query
  })
}

// 获取表格
export function excelList(query) {
  return request({
    url: '/distribution/excelManager/excelList',
    method: 'get',
    params: query
  })
}

// 获取群
export function getGroupList(query) {
  return request({
    url: '/distribution/excelManager/getGroupList',
    method: 'get',
    params: query
  })
}

 // 分发表格
 export function sendExcel(data){
  return request({
    url:'/distribution/excelManager/sendExcel',
    method: 'post',
    data: data
  })
}

 // 详情表格列表
 export function checkExcel(projectId){
  return request({
    url:'/distribution/excelManager/checkExcel?projectId='+projectId,
    method: 'get',
  })
}

 // 详情表格列表
 export function Change(officeId,projectId){
  return request({
    url:'/distribution/excelManager/Change?projectId='+projectId+'&officeId='+officeId,
    method: 'get',
  })
}

// 删除项目
export function Delete(projectId){
  return request({
    url:'/distribution/excelManager/Delete?projectId='+projectId,
    method: 'get',
  })
}